package com.heima.admin.service;

import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: ljl
 * @Date: 2022/11/16/22:56
 * @Description:
 */
public interface AdSensitiveService{

    //敏感词查询
    PageResponseResult wmSensitiveList(@RequestBody SensitiveDto sensitiveDto);

    //根据id删除敏感词
    ResponseResult wmSensitiveDeleteById(@PathVariable("id" ) Integer id);

    //添加敏感词
    ResponseResult wmSensitiveSave(@RequestBody WmSensitive wmSensitive);

    //更新敏感词
    ResponseResult wmSensitiveUpdate(@RequestBody WmSensitive wmSensitive);

}
